#include <iostream>

using std::cout;

const int N = 50;

void sort(int* a, int size)
{
    cout<<"chpok";
    int tmp;
    for(int i = 0;i < size;i++)
    {
        for(int j = i; (a[j] < a[j-1]);j--)
        {
            if(i==0) break;
            if(j<1) break;

            tmp = a[j-1];
            a[j-1] = a[j];
            a[j] = tmp;
        }
    }
    for(int y = 0;y < size;y++)
    {
        cout<<a[y]<<' ';
    }
}

int main() {
    int ar[N] = {1, 5, 3, 7, 3, 14,8};
   /* for(int h = 0;h < n;h++)
    {
          cin>>ar[h];
          cout<<"cook"<<endl;
    }*/
    cout<<"uiuiui";
    sort(ar, N);
    cout << "Hello world!" << std::endl;
    return 0;
}
